@foreach($catelist as $key =>$obj)
    <section class="m-list">
        <a href="{{url('/detail',$obj->id)}}" title="{{$obj->title}}">
            <div class="m-list-img">
                <img src="{{$obj->cover}}"/>
            </div>
            <div class="m-article">
                <div class="m-article-title">
                    <span>{{$obj->title}}</span>
                </div>
                <div class="m-article-info">
                    <div class="m-article-time">{{date('Y-m-d',strtotime($obj->created_at))}}</div>
                    <div class="m-article-counts"><span class="iconfont"></span>{{$obj->view + mt_rand(1000,2000)}}次</div>
                </div>
            </div>
        </a>
    </section>
@endforeach